package mode.states18;

public class Evaluate extends AbstractEvent{

    @Override
    public void evaluate(Shopping shopping, Boolean isConfirm) {
        if(isConfirm){
            System.out.println("评价商品成功");
            shopping.setEvent(Shopping.FINISH_STATE);
        }else {
            System.out.println("评价阶段，退款成功");
            shopping.setEvent(Shopping.REFUND);
        }
    }

}
